package com.yanfan.energy.mapper;


import com.yanfan.energy.domain.OrderSequence;
import com.yanfan.energy.domain.statist.CompanyBuildArea;
import com.yanfan.energy.domain.statist.CompanyBuildAreaEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author huan
 * @Description dao
 * @ClassName 2023年07月28日 11:19:00
 * @Version 1.0
 **/
@Repository
public interface BuildServiceDao {

    List<CompanyBuildArea> deviceLocationList(CompanyBuildArea companyBuildArea);


    CompanyBuildArea deviceLocationDetail(CompanyBuildArea companyBuildArea);

    void deviceLocationAdd(CompanyBuildArea companyBuildArea);

    void deviceLocationUpdate(CompanyBuildArea companyBuildArea);

    void deviceLocationDelete(CompanyBuildArea companyBuildArea);

    int sequenceNext(OrderSequence orderSequence);

    // 上面可以删除
    List<CompanyBuildAreaEntity> selectCompanyBuildAreaList(CompanyBuildAreaEntity entity);

    void addCompanyBuildArea(CompanyBuildAreaEntity entity);

    void updateCompanyBuildArea(CompanyBuildAreaEntity entity);

    void deleteCompanyBuildArea(CompanyBuildAreaEntity entity);

    CompanyBuildAreaEntity detailCompanyBuildArea(CompanyBuildAreaEntity entity);

    List<CompanyBuildAreaEntity> selectCompanyBuildAreaAll(CompanyBuildAreaEntity query);

    List<CompanyBuildAreaEntity> findFloorsByBuilds(@Param("buildIds") Integer[] buildIds);

    List<CompanyBuildAreaEntity> findAreaByFloors(@Param("floorIds") Integer[] floorIds);
}
